-- GENERATED SPELL FOR [Earthen Stonecarver] --


function spell0_7397(pUnit, Event) --@Fire Shield IV,n/a--
pUnit:FullCastSpellOnTarget(2602,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7397', 16000, 1)
end

function spell1_7397(pUnit, Event) --@Flame Buffet,n/a--
pUnit:FullCastSpellOnTarget(10452,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7397', 22200, 1)
end

function Sorts_7397(pUnit, Event)
local choix_sorts_7397 = math.random(0, 1)
if choix_sorts_7397 == 0 then
pUnit:RegisterEvent('spell0_7397', 1, 1)
end
if choix_sorts_7397 == 1 then
pUnit:RegisterEvent('spell1_7397', 1, 1)
end
end

function mob7397_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7397', math.random(1500, 3000), 1)
end

function mob7397_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7397_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7397_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7397, 1, 'mob7397_Action')
RegisterUnitEvent(7397, 2, 'mob7397_Leave')
RegisterUnitEvent(7397, 3, 'mob7397_Kill')
RegisterUnitEvent(7397, 4, 'mob7397_Die')
